package com.freejy.ecommunity.mapper;

import com.freejy.ecommunity.model.Favorites;
import com.freejy.ecommunity.model.FavoritesExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.List;

public interface FavoritesMapper {

    int countByExample(FavoritesExample example);

    int deleteByExample(FavoritesExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Favorites record);

    int insertSelective(Favorites record);

    List<Favorites> selectByExampleWithBLOBsWithRowbounds(FavoritesExample example, RowBounds rowBounds);

    List<Favorites> selectByExampleWithBLOBs(FavoritesExample example);

    List<Favorites> selectByExampleWithRowbounds(FavoritesExample example, RowBounds rowBounds);

    List<Favorites> selectByExample(FavoritesExample example);

    Favorites selectByPrimaryKey(Long id);

    int updateByExampleSelective(@Param("record") Favorites record, @Param("example") FavoritesExample example);

    int updateByExampleWithBLOBs(@Param("record") Favorites record, @Param("example") FavoritesExample example);

    int updateByExample(@Param("record") Favorites record, @Param("example") FavoritesExample example);

    int updateByPrimaryKeySelective(Favorites record);

    int updateByPrimaryKeyWithBLOBs(Favorites record);

    int updateByPrimaryKey(Favorites record);
}